<table class="table table-hover">
    <thead>
    <tr>
        @foreach($headers as $filed => $item)
        <th>{{ $item['title'] }}</th>
        @endforeach
    </tr>
    <tr style="color:#f56f9c">
        @foreach($headers as $filed => $item)
            @if($filed == 'sku')
                <td>TTL</td>
            @elseif($item['sumField'])
                <td>{{ array_key_exists($filed,$total) ? $total[$filed] : '' }}</td>
            @else
                <td></td>
            @endif
        @endforeach
    </tr>
    </thead>
    <tbody>
    @foreach($paginator as $row)
        <tr>
            <td>{{ $row->sku->psku_code ?? '' }}</td>
            <td>{{ $row->sku->psku_cn ?? '' }}</td>
            <td>{{ $row->country->country ?? '' }}</td>
            <td>{{ $row->delivery_num }}</td>
            <td>{{ $row->delivery_money }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
